package com.ym.manager.admin.ali;

import com.ym.datasource.DataSourceType;
import com.ym.datasource.UseDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AliConfigInfoService {
    @Autowired
    private AliConfigInfoDao aliConfigInfoDao;

    @UseDataSource(DataSourceType.YS_IM)
    public List<AliConfigInfo> list() {
        return aliConfigInfoDao.list();
    }

    @UseDataSource(DataSourceType.YS_IM)
    public AliConfigInfo infoById(long id) {
        return aliConfigInfoDao.infoById(id);
    }

    @UseDataSource(DataSourceType.YS_IM)
    public int update(AliConfigInfo aliConfigInfo) {
        return aliConfigInfoDao.update(aliConfigInfo);
    }
}
